package cn.disicn.controller;

import com.jfinal.core.Controller;

import cn.disicn.model.SecPublishPayLog;

/**
 * 交易记录查询
 * @author Luyao
 * @date 2017年12月21日 下午4:05:48
 */
public class TransactionRecordController extends Controller {

	private static final SecPublishPayLog payLog = new SecPublishPayLog();

	/**
	 * 
	 * 查询所有交易记录
	 */
	public void index() {
		Integer type = getParaToInt("type");
		String orderNo = getPara("orderNo");
		Integer pageNum = getParaToInt("pageNum");
		Integer pageSize = getParaToInt("pageSize");
		if (pageSize == null)
			pageSize = 10;
		renderJson(payLog.getAllTransactionRecord(type, orderNo, pageNum, pageSize));
	}

	/**
	 * 
	 * 查询所有的订单号
	 */
	public void getAllOrderNo() {
		renderJson(payLog.getAllOrderNo());
	}

}
